<template>
  <div>
      <!-- 循环的同时再把obj（数组的每一项再传给articleItem 父传子） -->
<ArticleItem v-for="obj in arr" :key='obj.art_id' :item='obj' @bgxq='bgxqFn'></ArticleItem>

  </div>
</template>

<script>
import ArticleItem from '@/components/ArticleItem'
export default {
  components: {
    ArticleItem
  },
  props: {
    arr: {
      type: Array
    }
  },
  methods: {
    bgxqFn (artId, action) {
      this.$emit('bgxqFn', artId, action)
    }
  }
}
</script>

<style>

</style>
